3.502 \(\int (e x)^m (A+B x) \left (a+c x^2\right )^p \, dx\)

Optimal. Leaf size=135 \[ \frac{A (e x)^{m+1} \left (a+c x^2\right )^p \left (\frac{c x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac{m+1}{2},-p;\frac{m+3}{2};-\frac{c x^2}{a}\right )}{e (m+1)}+\frac{B (e x)^{m+2} \left (a+c x^2\right )^p \left (\frac{c x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac{m+2}{2},-p;\frac{m+4}{2};-\frac{c x^2}{a}\right )}{e^2 (m+2)} \]

[Out]

(A*(e*x)^(1 + m)*(a + c*x^2)^p*Hypergeometric2F1[(1 + m)/2, -p, (3 + m)/2, -((c*
x^2)/a)])/(e*(1 + m)*(1 + (c*x^2)/a)^p) + (B*(e*x)^(2 + m)*(a + c*x^2)^p*Hyperge
ometric2F1[(2 + m)/2, -p, (4 + m)/2, -((c*x^2)/a)])/(e^2*(2 + m)*(1 + (c*x^2)/a)
^p)

_______________________________________________________________________________________

Rubi [A]  time = 0.154234, antiderivative size = 135, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.15 \[ \frac{A (e x)^{m+1} \left (a+c x^2\right )^p \left (\frac{c x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac{m+1}{2},-p;\frac{m+3}{2};-\frac{c x^2}{a}\right )}{e (m+1)}+\frac{B (e x)^{m+2} \left (a+c x^2\right )^p \left (\frac{c x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac{m+2}{2},-p;\frac{m+4}{2};-\frac{c x^2}{a}\right )}{e^2 (m+2)} \]

Antiderivative was successfully verified.

[In]  Int[(e*x)^m*(A + B*x)*(a + c*x^2)^p,x]

[Out]

(A*(e*x)^(1 + m)*(a + c*x^2)^p*Hypergeometric2F1[(1 + m)/2, -p, (3 + m)/2, -((c*
x^2)/a)])/(e*(1 + m)*(1 + (c*x^2)/a)^p) + (B*(e*x)^(2 + m)*(a + c*x^2)^p*Hyperge
ometric2F1[(2 + m)/2, -p, (4 + m)/2, -((c*x^2)/a)])/(e^2*(2 + m)*(1 + (c*x^2)/a)
^p)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 20.7217, size = 105, normalized size = 0.78 \[ \frac{A \left (e x\right )^{m + 1} \left (1 + \frac{c x^{2}}{a}\right )^{- p} \left (a + c x^{2}\right )^{p}{{}_{2}F_{1}\left (\begin{matrix} - p, \frac{m}{2} + \frac{1}{2} \\ \frac{m}{2} + \frac{3}{2} \end{matrix}\middle |{- \frac{c x^{2}}{a}} \right )}}{e \left (m + 1\right )} + \frac{B \left (e x\right )^{m + 2} \left (1 + \frac{c x^{2}}{a}\right )^{- p} \left (a + c x^{2}\right )^{p}{{}_{2}F_{1}\left (\begin{matrix} - p, \frac{m}{2} + 1 \\ \frac{m}{2} + 2 \end{matrix}\middle |{- \frac{c x^{2}}{a}} \right )}}{e^{2} \left (m + 2\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((e*x)**m*(B*x+A)*(c*x**2+a)**p,x)

[Out]

A*(e*x)**(m + 1)*(1 + c*x**2/a)**(-p)*(a + c*x**2)**p*hyper((-p, m/2 + 1/2), (m/
2 + 3/2,), -c*x**2/a)/(e*(m + 1)) + B*(e*x)**(m + 2)*(1 + c*x**2/a)**(-p)*(a + c
*x**2)**p*hyper((-p, m/2 + 1), (m/2 + 2,), -c*x**2/a)/(e**2*(m + 2))

_______________________________________________________________________________________

Mathematica [A]  time = 0.131214, size = 106, normalized size = 0.79 \[ \frac{x (e x)^m \left (a+c x^2\right )^p \left (\frac{c x^2}{a}+1\right )^{-p} \left (A (m+2) \, _2F_1\left (\frac{m+1}{2},-p;\frac{m+3}{2};-\frac{c x^2}{a}\right )+B (m+1) x \, _2F_1\left (\frac{m}{2}+1,-p;\frac{m}{2}+2;-\frac{c x^2}{a}\right )\right )}{(m+1) (m+2)} \]

Antiderivative was successfully verified.

[In]  Integrate[(e*x)^m*(A + B*x)*(a + c*x^2)^p,x]

[Out]

(x*(e*x)^m*(a + c*x^2)^p*(B*(1 + m)*x*Hypergeometric2F1[1 + m/2, -p, 2 + m/2, -(
(c*x^2)/a)] + A*(2 + m)*Hypergeometric2F1[(1 + m)/2, -p, (3 + m)/2, -((c*x^2)/a)
]))/((1 + m)*(2 + m)*(1 + (c*x^2)/a)^p)

_______________________________________________________________________________________

Maple [F]  time = 0.085, size = 0, normalized size = 0. \[ \int \left ( ex \right ) ^{m} \left ( Bx+A \right ) \left ( c{x}^{2}+a \right ) ^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((e*x)^m*(B*x+A)*(c*x^2+a)^p,x)

[Out]

int((e*x)^m*(B*x+A)*(c*x^2+a)^p,x)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int{\left (B x + A\right )}{\left (c x^{2} + a\right )}^{p} \left (e x\right )^{m}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)*(c*x^2 + a)^p*(e*x)^m,x, algorithm="maxima")

[Out]

integrate((B*x + A)*(c*x^2 + a)^p*(e*x)^m, x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left ({\left (B x + A\right )}{\left (c x^{2} + a\right )}^{p} \left (e x\right )^{m}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)*(c*x^2 + a)^p*(e*x)^m,x, algorithm="fricas")

[Out]

integral((B*x + A)*(c*x^2 + a)^p*(e*x)^m, x)

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x)**m*(B*x+A)*(c*x**2+a)**p,x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int{\left (B x + A\right )}{\left (c x^{2} + a\right )}^{p} \left (e x\right )^{m}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)*(c*x^2 + a)^p*(e*x)^m,x, algorithm="giac")

[Out]

integrate((B*x + A)*(c*x^2 + a)^p*(e*x)^m, x)